@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="customerInfoForm">
            <input type="hidden" id="id" value="${customerInfo.id}">
            <input type="hidden" id="reservationsId" value="${customerInfo.reservationsId}">
            <input type="hidden" id="consumptionHabitsValue" value="${customerInfo.consumptionHabits}">
            <input type="hidden" id="consumAbilityValue" value="${customerInfo.consumAbility}">
            <input type="hidden" id="occupationValue" value="${customerInfo.occupation}">
            <input type="hidden" id="charactersValue" value="${customerInfo.characters}">
            <input type="hidden" id="customerSexValue" value="${customerInfo.customerSex}">
            <input type="hidden" id="maritalStatusValue" value="${customerInfo.maritalStatus}">
            <input type="hidden" id="provinceValue" value="${customerInfo.province}">
            <input type="hidden" id="citiesValue" value="${customerInfo.cities}">
            <input type="hidden" id="regionValue" value="${customerInfo.region}">
            <input type="hidden" id="isHaveChildrenValue" value="${customerInfo.isHaveChildren}">
            <input type="hidden" id="fieldTcValue" value="${customerInfo.fieldTc}">
            <input type="hidden" id="isReturnVisitValue" value="${customerInfo.isReturnVisit}">
            <input type="hidden" id="refereeShipValue" value="${customerInfo.refereeShip}">
            <input type="hidden" id="oneChannelValue" value="${customerInfo.oneChannel}">
            <input type="hidden" id="twoChannelValue" value="${customerInfo.twoChannel}">
            <input type="hidden" id="thrChannelValue" value="${customerInfo.thrChannel}">
            <input type="hidden" id="oneMediumValue" value="${customerInfo.oneMedium}">
            <input type="hidden" id="twoMediumValue" value="${customerInfo.twoMedium}">
            <input type="hidden" id="thrMediumValue" value="${customerInfo.thrMedium}">
            <input type="hidden" id="phoneSharShipValue" value="${customerInfo.phoneSharShip}">
            <input type="hidden" id="payservicenameValue" value="${customerInfo.appointmentPayService}">
            <div class="row">
                <div class="col-sm-4 b-r">
                    <#input id="customerName" name="客户姓名*" underline="true" value="${customerInfo.customerName}"/>
                    <#input id="pseudonym" name="化名" underline="true" value="${customerInfo.pseudonym}"/>
                    <#select id="customerSex" name="性别" underline="true">
                        <option value="1">男</option>
                        <option value="2">女</option>
                    </#select>
                    <#input id="customerAge" name="年龄" underline="true" value="${customerInfo.customerAge}"/>
                    <#select id="consumptionHabits" name="消费习惯" underline="true" />
                    <div style="display: none">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">一级渠道</label>
                            <div class="col-sm-9">
                                <select disabled="true" class="form-control" id="oneChannel" name="oneChannel"></select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">二级渠道</label>
                            <div class="col-sm-9">
                                <select disabled="true" class="form-control" id="twoChannel" name="twoChannel"></select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">三级渠道</label>
                            <div class="col-sm-9">
                                <select disabled="true" class="form-control" id="thrChannel" name="thrChannel"></select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                    </div>
                    <#select id="country" name="国家" underline="true">
                        <option value="中国">中国</option>
                    </#select>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">省份</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="province" name="province"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">城市</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="cities" name="cities"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">区域</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="region" name="region"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#input id="address" name="地址" underline="true" value="${customerInfo.address}"/>
                    <#input id="zipCode" name="邮编" underline="true" value="${customerInfo.zipCode}"/>
                    <#select id="occupation" name="职业" underline="true"/>
                    <#input id="email" name="Email" underline="true" value="${customerInfo.email}"/>
                    <#input disabled="disabled"  id="medicalRecordNumber" name="病历号" underline="true" value="${customerInfo.medicalRecordNumber}"/>
                </div>
                <div class="col-sm-4">
                    <#input disabled="disabled" id="customerPhone" name="手机号码*" underline="true" value="${customerInfo.customerPhone}"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">电话使用人</label>
                        <div class="col-sm-9">
                            <select disabled="true" class="form-control" id="phoneSharShip" name="phoneSharShip">
                                <option value="本人">本人</option>
                                <option value="爸爸">爸爸</option>
                                <option value="妈妈">妈妈</option>
                                <option value="儿子">儿子</option>
                                <option value="女儿">女儿</option>
                                <option value="朋友">朋友</option>
                                <option value="其他">其他</option>
                            </select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">咨询项目</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="appointmentPayService"
                                    name="appointmentPayService"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#select id="consumAbility" name="消费能力" underline="true"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">一级媒介</label>
                        <div class="col-sm-9">
                            <select disabled="disabled" class="form-control" id="oneMedium" name="oneMedium"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">二级媒介</label>
                        <div class="col-sm-9">
                            <select disabled="disabled" class="form-control" id="twoMedium" name="twoMedium"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">三级媒介</label>
                        <div class="col-sm-9">
                            <select disabled="disabled" class="form-control" id="thrMedium" name="thrMedium"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#input id="fixedTelephone" name="座机" underline="true" value="${customerInfo.fixedTelephone}"/>
                    <#input id="otherContact" name="其他联系方式" underline="true" value="${customerInfo.otherContact}"/>
                    <#input id="birthday" name="生日" underline="true" type="date"
                            clickFun="laydate({istime: false, format: 'YYYY-MM-DD'})" value="${customerInfo.birthday}"/>
                    <#input id="idCardNo" name="身份证号" underline="true" value="${customerInfo.idCardNo}"/>
                    <#input id="qqNumber" name="QQ号" underline="true" value="${customerInfo.qqNumber}"/>
                    <#input id="wechatNumber" name="微信号" underline="true" value="${customerInfo.wechatNumber}"/>
                </div>
                <div class="col-sm-4">
                    <#input disabled="disabled" id="customerStatus" name="客户状态" underline="true" value="${customerInfo.customerStatus}"/>
                    <div style="display: none">
                        <#select disabled="disabled" id="isReturnVisit" name="是否回访" underline="true">
                            <option value="0">--请选择--</option>
                        </#select>
                    </div>
                    <#select id="fieldTc" name="现场TC" underline="true"/>
                    <#input disabled="disabled" id="referee" name="推荐人" value="${customerInfo.referee}" underline="true"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">与推荐人关系</label>
                        <div class="col-sm-9">
                            <select disabled="true" class="form-control" id="refereeShip" name="refereeShip"></select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <#input id="nonTransactionLevel" name="未成交等级" underline="true" value="${customerInfo.nonTransactionLevel}"/>
                    <#input id="transactionLevel" name="成交等级" underline="true" value="${customerInfo.transactionLevel}"/>

                    <!--<#input id="arrivalTime" name="到店时间" underline="true" type="datetime" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>-->
                    <#input id="archiving" name="建档人" underline="true" value="${customerInfo.archiving}"/>
                    <!--<#input id="filingTime" name="建档时间" underline="true" type="datetime" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>-->
                    <!--<#input id="entryClerk" name="录入人" underline="true"/>-->
                    <#input id="auditorTime" name="审核时间" underline="true" type="datetime"
                            clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" value="${customerInfo.auditorTime}"/>
                    <#input id="numberOfAudits" name="审核次数" underline="true" value="${customerInfo.numberOfAudits}"/>
                    <#input id="finalAuditor" name="最后审核人" underline="true" value="${customerInfo.finalAuditor}"/>

                    <#select id="characters" name="性格" underline="true"/>
                    <#select id="maritalStatus" name="婚姻状况" underline="true">
                        <option value="0">请选择</option>
                        <option value="1">已婚</option>
                        <option value="2">未婚</option>
                        <option value="3">离异</option>
                    </#select>
                    <#select id="isHaveChildren" name="有无小孩" underline="true">
                        <option value="0">请选择</option>
                        <option value="1">有</option>
                        <option value="2">无</option>
                    </#select>
                </div>
            </div>
            <div style="display: none">
                <div class="row">
                    <label class="control-label"> 不回访原因</label>
                    <div><textarea disabled="disabled" id="causeOfNoReturnVisit" name="causeOfNoReturnVisit" rows=5
                                   cols=150>${customerInfo.causeOfNoReturnVisit}</textarea>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="control-label"> 备注</label>
                <div><textarea id="remarks" name="remarks" rows=5 cols=150>${customerInfo.remarks}</textarea></div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="CustomerInfoDlg.reconsulSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="CustomerInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/arrival/customer/customer_info.js"></script>
<script src="${ctxPath}/static/js/common/jsAddresss.js"></script>
<script src="${ctxPath}/static/js/common/jsChannel.js"></script>
<script src="${ctxPath}/static/js/common/jsMedium.js"></script>
<script type="text/javascript">
    var regioni = document.getElementById("regionValue").value;
    var provincei = document.getElementById("provinceValue").value;
    var citiesi = document.getElementById("citiesValue").value;
    var oneChanneli = document.getElementById("oneChannelValue").value;
    var twoChanneli = document.getElementById("twoChannelValue").value;
    var thrChanneli = document.getElementById("thrChannelValue").value;
    var oneMediumi = document.getElementById("oneMediumValue").value;
    var twoMediumi = document.getElementById("twoMediumValue").value;
    var thrMediumi = document.getElementById("thrMediumValue").value;
    //初始化下拉渠道列表
    $.post(Feng.ctxPath + "/channel/getChannelsss", function (data) {
        ChannelList = data;
        channelInit('oneChannel', 'twoChannel', 'thrChannel');
    }, "json");
    //初始化下拉媒介列表
    $.post(Feng.ctxPath + "/medium/getMedium", function (data) {
        MediumList = data;
        mediumInit('oneMedium', 'twoMedium', 'thrMedium');
    }, "json");
    addressInit('province', 'cities', 'region');
</script>
@}
